<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/grsun" prefix="grsun"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/include/main_include.jsp"%>
<%@ include file="/include/form_include.jsp"%>
<script type="text/javascript" src="${path}/static/myjs/plugins/grsunChooseWindow.js"></script>
</head>
<body>
	<div class="modal-body" style="max-height: 716px;">
		<div id="divform" class="row mx-dialog-c bs_dialog open"> 
		   <form id="searchForm" class="form-horizontal" method="post"> 
			<div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title">支行名称</label>
		        <div class="mx-group-control" style="height:33px;">
					<input id="branchName" name="branchName" type="text" class="width-100 mx-input-group" style="height:33px;" value="${pd.branchName}">
		        </div>
		    </div>
			<div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title">银行总行</label>
		        <div class="mx-group-control" style="height:33px;">
			         <select id="parentId" name="parentId" class="width-100" style="height: 33px;">
			        		<c:forEach items="${bankList }" var="record">
									<option value="${record.bankId }">${record.name}</option>
							</c:forEach>
			        </select>
		        </div>
		    </div>
			 <div class="form-group col-lg-6 col-sm-6 col-xs-6">
					<label class="control-label mx-group-title"><span class="require" style='color:red;font-size:16px'></span>父级</label>
					<div class="mx-group-control" style="height: 33px;">
						<span class="input-icon input-icon-right reftext mx-input-group width-100">
							<input type="text" class="form-control reftext-text" value="${pd.city }" id="parentName2" NAME="parentName2" readonly="readonly">
							<i class="ace-icon fa fa-search  bigger-120 reftext-search-button" id="agentChoose"></i>
							<input type="hidden" name="cityparentid" id="cityparentid" value="${pd.cityId }" />
						</span>
					</div>
			</div>
		  </form>                  
		</div>
	</div>
	<script type="text/javascript">
	$(function() {
		$('#dataForm').form('load',{
			parentId:'${pd.parentId}'
		});
		$('#parentName2,#agentChoose').on('click', function() {
			grsunChooseWindow.chooseCityWindow.show(function(result) {
				$('#cityparentid').val(result.itemid);
				$('#parentName2').val(result.text);
			});
		});
	});
	</script >
</body>
</html>
